{extend name="admin@index_layout"/}
{block name="main"}
<div class="layui-card">
    <div class="layui-card-header">会员配置</div>
    <div class="layui-card-body">
        <form class="layui-form" method="post">
            <div class="layui-form-item">
                <label class="layui-form-label">新会员注册</label>
                <div class="layui-input-block">
                    <input type="radio" name="setting[allowregister]" value="1" title="允许" {if 1 == $setting['allowregister']}checked{/if}>
                    <input type="radio" name="setting[allowregister]" value="0" title="禁止" {if 0 == $setting['allowregister']}checked{/if}>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">注册审核</label>
                <div class="layui-input-block">
                    <input type="radio" name="setting[registerverify]" value="1" title="是" {if 1 == $setting['registerverify']}checked{/if}>
                    <input type="radio" name="setting[registerverify]" value="0" title="否" {if 0 == $setting['registerverify']}checked{/if}>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">注册手机认证</label>
                <div class="layui-input-block">
                    <input type="radio" name="setting[register_mobile_verify]" value="1" title="是" {if 1 == $setting['register_mobile_verify']}checked{/if}>
                    <input type="radio" name="setting[register_mobile_verify]" value="0" title="否" {if 0 == $setting['register_mobile_verify']}checked{/if}>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">注册邮箱认证</label>
                <div class="layui-input-block">
                    <input type="radio" name="setting[register_email_verify]" value="1" title="是" {if 1 == $setting['register_email_verify']}checked{/if}>
                    <input type="radio" name="setting[register_email_verify]" value="0" title="否" {if 0 == $setting['register_email_verify']}checked{/if}>
                </div>
            </div>

            <div class="layui-form-item">
                <label class="layui-form-label">登陆验证码</label>
                <div class="layui-input-block">
                    <input type="radio" name="setting[openverification]" value="1" title="开启" {if 1 == $setting['openverification']}checked{/if}>
                    <input type="radio" name="setting[openverification]" value="0" title="关闭" {if 0 == $setting['openverification']}checked{/if}>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">显示密码确认</label>
                <div class="layui-input-block">
                    <input type="radio" name="setting[password_confirm]" value="1" title="是" {if 1 == $setting['password_confirm']}checked{/if}>
                    <input type="radio" name="setting[password_confirm]" value="0" title="否" {if 0 == $setting['password_confirm']}checked{/if}>
                </div>
                <div class="layui-form-mid2 layui-word-aux">显示或隐藏注册时候的密码确认</div>
            </div>
             <div class="layui-form-item">
                <label class="layui-form-label">注册不显示昵称</label>
                <div class="layui-input-block">
                    <input type="radio" name="setting[remove_nickname]" value="1" title="是" {if 1 == $setting['remove_nickname']}checked{/if}>
                    <input type="radio" name="setting[remove_nickname]" value="0" title="否" {if 0 == $setting['remove_nickname']}checked{/if}>
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">1元购买积分</label>
                <div class="layui-input-inline">
                     <input type="number" name="setting[rmb_point_rate]" required="" lay-verify="required" placeholder="1元人民币购买积分数量" autocomplete="off" class="layui-input" value="{$setting.rmb_point_rate}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">会员默认积分</label>
                <div class="layui-input-inline">
                     <input type="number" name="setting[defualtpoint]" required="" lay-verify="required" placeholder="新会员默认积分" autocomplete="off" class="layui-input" value="{$setting.defualtpoint}">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">会员默认资金</label>
                <div class="layui-input-inline">
                     <input type="number" name="setting[defualtamount]" required="" lay-verify="required" placeholder="新会员默认资金" autocomplete="off" class="layui-input" value="{$setting.defualtamount}">
                </div>
            </div>
            <div class="layui-form-item layer-footer">
                <div class="layui-input-block">
                    <button class="layui-btn" lay-submit data-refresh="false">立即提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>
</div>
{/block}
{block name="script"}
<script type="text/javascript">
layui.use('yznForm', function() {
    var yznForm = layui.yznForm;
    yznForm.listen();
});
</script>
{/block}